#pragma once
#include <GL\freeglut.h>

typedef unsigned char byte;

class AreaMap
{
protected:
	GLuint map_list; // display list for the map
	byte * map_data;
	int map_width,map_depth,quad_size,map_data_size;

public:
	AreaMap(int map_size, int quad_size);
	~AreaMap(void);
	
	int heightAt(int x, int z);
	void vertexColour(int height);
	void render();
	void construct();
	
	friend class KMController;
};

